package com.jingnen.guess_index_server.service;

import java.util.List;

import org.springframework.stereotype.Service;

import com.jingnen.guess_index_server.entity.GuessRecord;
import com.jingnen.guess_index_server.repository.GuessRecordRepository;

import jakarta.annotation.Resource;

@Service
public class GuessRecordService {
    @Resource
    private GuessRecordRepository guessRecordRepository;

    public List<GuessRecord> getGuessRecordByUserId(Long userId) {
        return guessRecordRepository.findByUserId(userId);
    }
}
